<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>原子习惯 - 首页</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
  <link rel="stylesheet" href="css/styles.css">
</head>
<body>
  <div class="container">
    <div class="status-bar">
      <div class="time">9:41</div>
      <div class="icons">
        <i class="fas fa-signal"></i>
        <i class="fas fa-wifi"></i>
        <i class="fas fa-battery-full"></i>
      </div>
    </div>
    
    <div class="nav-bar">
      <div class="title">我的习惯</div>
      <div class="action" data-nav="add-habit.html">
        <i class="fas fa-plus"></i>
      </div>
    </div>
    
    <div class="screen-container">
      <!-- Today's Summary -->
      <div class="card">
        <div class="flex flex-between">
          <h3>今日概览</h3>
          <span class="text-secondary">2025年4月7日</span>
        </div>
        
        <div class="progress mb-10">
          <div class="progress-bar" style="width: 60%;"></div>
        </div>
        
        <div class="flex flex-between">
          <span>已完成：<strong>3/5</strong></span>
          <div class="streak">
            <i class="fas fa-fire"></i> 连续完成：7天
          </div>
        </div>
      </div>
      
      <!-- Today's Habits -->
      <h3>今日习惯</h3>
      
      <div class="card">
        <div class="flex flex-between mb-10">
          <div class="flex gap-10">
            <div class="form-check">
              <input type="checkbox" checked>
            </div>
            <div>
              <h4 class="mb-10">晨间冥想</h4>
              <span class="text-secondary">每天 · 10分钟</span>
            </div>
          </div>
          <div class="text-success">
            <i class="fas fa-check-circle"></i>
          </div>
        </div>
        <div class="text-right">
          <a href="habit-detail.html" class="text-primary">详情</a>
        </div>
      </div>
      
      <div class="card">
        <div class="flex flex-between mb-10">
          <div class="flex gap-10">
            <div class="form-check">
              <input type="checkbox" checked>
            </div>
            <div>
              <h4 class="mb-10">阅读</h4>
              <span class="text-secondary">每天 · 30分钟</span>
            </div>
          </div>
          <div class="text-success">
            <i class="fas fa-check-circle"></i>
          </div>
        </div>
        <div class="text-right">
          <a href="habit-detail.html" class="text-primary">详情</a>
        </div>
      </div>
      
      <div class="card">
        <div class="flex flex-between mb-10">
          <div class="flex gap-10">
            <div class="form-check">
              <input type="checkbox" checked>
            </div>
            <div>
              <h4 class="mb-10">喝水</h4>
              <span class="text-secondary">每天 · 8杯</span>
            </div>
          </div>
          <div class="text-success">
            <i class="fas fa-check-circle"></i>
          </div>
        </div>
        <div class="text-right">
          <a href="habit-detail.html" class="text-primary">详情</a>
        </div>
      </div>
      
      <div class="card">
        <div class="flex flex-between mb-10">
          <div class="flex gap-10">
            <div class="form-check">
              <input type="checkbox">
            </div>
            <div>
              <h4 class="mb-10">运动</h4>
              <span class="text-secondary">每天 · 30分钟</span>
            </div>
          </div>
          <div class="text-secondary">
            <i class="fas fa-circle"></i>
          </div>
        </div>
        <div class="text-right">
          <a href="habit-detail.html" class="text-primary">详情</a>
        </div>
      </div>
      
      <div class="card">
        <div class="flex flex-between mb-10">
          <div class="flex gap-10">
            <div class="form-check">
              <input type="checkbox">
            </div>
            <div>
              <h4 class="mb-10">写日记</h4>
              <span class="text-secondary">每天 · 晚上</span>
            </div>
          </div>
          <div class="text-secondary">
            <i class="fas fa-circle"></i>
          </div>
        </div>
        <div class="text-right">
          <a href="habit-detail.html" class="text-primary">详情</a>
        </div>
      </div>
      
      <!-- Weekly Summary -->
      <div class="card mt-20">
        <h3>本周进度</h3>
        <div class="chart-placeholder">
          <div class="text-center">
            <i class="fas fa-chart-bar fa-3x mb-10"></i>
            <p>每周习惯完成率</p>
            <a href="analytics.html" class="text-primary">查看详细统计</a>
          </div>
        </div>
      </div>
      
      <!-- Motivational Quote -->
      <div class="card mt-20">
        <blockquote>
          <p>"坚持好习惯不是靠意志力，而是靠好的系统和环境设计。"</p>
          <footer>— 詹姆斯·克利尔《原子习惯》</footer>
        </blockquote>
      </div>
    </div>
    
    <!-- Tab Bar -->
    <div class="tab-bar">
      <div class="tab-item active">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </div>
      <div class="tab-item" data-nav="templates.html">
        <i class="fas fa-list-ul"></i>
        <span>模板</span>
      </div>
      <div class="tab-item" data-nav="analytics.html">
        <i class="fas fa-chart-pie"></i>
        <span>统计</span>
      </div>
      <div class="tab-item" data-nav="community.html">
        <i class="fas fa-users"></i>
        <span>社区</span>
      </div>
      <div class="tab-item" data-nav="profile.html">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </div>
    </div>
  </div>

  <style>
    /* Dashboard specific styles */
    blockquote {
      margin: 0;
      padding: 10px 20px;
      border-left: 4px solid var(--primary-color);
      font-style: italic;
    }
    blockquote footer {
      margin-top: 10px;
      font-size: 14px;
      text-align: right;
      color: var(--text-secondary);
    }
    .form-check {
      display: flex;
      align-items: center;
    }
    .form-check input[type="checkbox"] {
      width: 22px;
      height: 22px;
    }
  </style>
  
  <script src="js/app.js"></script>
</body>
</html>
